package com.macro.mall.tiny.modules.pms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author tyrone
 * @since 2025-02-20
 */
@Getter
@Setter
@TableName("pms_repair_data")
@ApiModel(value = "PmsRepairData对象", description = "")
public class PmsRepairData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("父id")
    private Long parentId;

    @ApiModelProperty("0目录 1pdf")
    private Integer type;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("url logo或者多媒体文件的url")
    private String url;

    @ApiModelProperty("0非vip 1vip")
    private Integer showStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("收藏量")
    private Integer collectNum;

    @ApiModelProperty("浏览量")
    private Integer viewNum;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageSize = 1;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageNum = 10;


    @TableField(exist = false)
    @ApiModelProperty("当前用户是否收藏 0否1是")
    private Integer currentMemberCollect = 0;

    @TableField(exist = false)
    @ApiModelProperty("子类")
    private List<PmsRepairData> children ;


}
